package com.example.j202411.Model;

import java.util.List;

public class BusResponse {
    private int code;
    private String city;
    private String line;
    private int car_count;
    private List<BusInfo> data;

    // Getters and Setters
    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getLine() {
        return line;
    }

    public void setLine(String line) {
        this.line = line;
    }

    public int getCar_count() {
        return car_count;
    }

    public void setCar_count(int car_count) {
        this.car_count = car_count;
    }

    public List<BusInfo> getData() {
        return data;
    }

    public void setData(List<BusInfo> data) {
        this.data = data;
    }

    // 内部类 BusInfo
    public static class BusInfo {
        private String lines;
        private String price;
        private String endSn;
        private String busId;
        private String reachtime;
        private String travelTime;
        private String surplus;

        // Getters and Setters
        public String getLines() {
            return lines;
        }

        public void setLines(String lines) {
            this.lines = lines;
        }

        public String getPrice() {
            return price;
        }

        public void setPrice(String price) {
            this.price = price;
        }

        public String getEndSn() {
            return endSn;
        }

        public void setEndSn(String endSn) {
            this.endSn = endSn;
        }

        public String getBusId() {
            return busId;
        }

        public void setBusId(String busId) {
            this.busId = busId;
        }

        public String getReachtime() {
            return reachtime;
        }

        public void setReachtime(String reachtime) {
            this.reachtime = reachtime;
        }

        public String getTravelTime() {
            return travelTime;
        }

        public void setTravelTime(String travelTime) {
            this.travelTime = travelTime;
        }

        public String getSurplus() {
            return surplus;
        }

        public void setSurplus(String surplus) {
            this.surplus = surplus;
        }
    }
}